package com.feihao.zhou.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;


@Component
@Aspect
public class AOPAdvice {


    //切入点
    @Pointcut("execution(* com.feihao.zhou.service.Service.login(..))")
    public void pt(){}

    @Before("pt()")
    public void before(){
        System.out.println("执行黑名单验证！");
    }
}
